/** 
 * 自定义组件参考文档
 * https://cn.vuejs.org/v2/guide/components-registration.html
*/
import Vue from 'vue';
import Test from './test';
import ring from  './ring';
import percentBarList from  './percentBarList';
import percentBar from  './percentBar';
import ScrollNumbers from './ScrollNumbers'
import scrollNums from './ScrollNums';
import pictorialBar from './pictorialBar';
import myDialog from './myDialog';
import txZbtx from './txZbtx';
import zctxTable from './zctxTable';
import bars from './bars';
import PercentCircle from './PercentCircle'
import normalPie from './normalPie'
import myTable from './myTable';
import polarPie from './polarPie';
// import XZMap from './XZMap';
import mapPng from './mapPng';
import header from './header';
import pdfViewer from './pdfViewer';
const list = [
  Test,
  ring,
  percentBarList,
  percentBar,
  ScrollNumbers,
  scrollNums,
  pictorialBar,
  zctxTable,
  bars,
  PercentCircle,
  normalPie,
  polarPie,
  // XZMap,
  mapPng,
  header
]
//循环注册组件
list.forEach(ele => {
  Vue.component(`avue-echart-${ele.name}`, ele)
});
const components = {
   "dialog":myDialog,
   "txZbtx":txZbtx,
  "table":myTable,
  "pdf-viewer":pdfViewer,
  // "mulcolumn-table":MulColumnTable
}
//循环公用注册组件
for(let k in components){
  Vue.component(`com-${k}`, components[k])
}
